package com.chi.redis;

import org.springframework.stereotype.Component;
import redis.clients.jedis.Jedis;

import javax.annotation.Resource;

/**
 * @author chi  2017-06-22 11:37
 **/
@Component
public class RedisTest {
    @Resource
    private Jedis jedis;

    public String set(String key, String value) {
        String set = jedis.set(key,value);
        return set;
    }

    public String get(String key){
        return jedis.get(key);
    }
}
